﻿@model Susha.Models.Pages.UserRegisterPage

@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
    @Scripts.Render("/Scripts/common/user.js")
}

<h2>Register</h2>
@using (Html.BeginForm("Register", "User", FormMethod.Post))
{
    <fieldset>
        <legend>Register</legend>
        
        @* Email *@
        <label class="" for="Email">
            Почта:
        </label>
        @Html.TextBox("Email", Model.User.Email, new { @class = "" })
        @Html.ValidationMessage("Email")<br />
        
        @* Password *@
        <label class="" for="Password">
            Пароль:
        </label>
        @Html.Password("Password", Model.User.Password, new { @class = "" })
        @Html.ValidationMessage("Password")<br />
        
        @* ConfirmPassword *@
        <label class="" for="ConfirmPassword">
            Подтвердите пароль:
        </label>
        @Html.Password("ConfirmPassword", Model.User.ConfirmPassword, new { @class = "" })
        @Html.ValidationMessage("ConfirmPassword")<br />
     
        @* Captcha *@
        <label class="" for ="Captcha">
        Введите слово "@Model.FalseCaptcha" без кавычек и с большой буквы.
        </label>
        @Html.TextBox("Captcha", Model.User.Captcha, new { @class = "" })
        @Html.ValidationMessage("Captcha")<br />

        @*Submit*@
        <input type="submit" class="" value="Register" />
    </fieldset>
}
